package com.xh.bussiness.practice.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.List;

import com.xh.bussiness.tiku.bean.dto.QuestionDto;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生作业作答结果
 * </p>
 *
 * @author Pitt
 * @since 2021-01-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_practice_student_result")
public class PracticeStudentResult extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 学生id
     */
    private String studentId;

    /**
     * 作业id
     */
    private String practiceId;

    /**
     * 试题id
     */
    private String questionId;

    /**
     * 作答结果
     */
    private String answerContent;


    /**
     *  作答结果（-1未作答，0错误，1正确，2部分正确）
     */
    private Integer correct;

    /**
     * 得分
     */
    private Double score;

    /**
     * 作答内容
     */
    private String content;

    /**
     * 1：图片；2：语音；3：视频；4：附件；
     */
    private Integer fileType;

    /**
     * 文件地址
     */
    private String fileUrl;

    private String ext;

    private String fileName;

    private String fileTime;

    @TableField(exist = false)
    private List<String> fileUrls;

    @TableField(exist = false)
    private QuestionDto question;

    private Integer orderNo;

}
